package com.mv.controller;

import com.mv.entity.Type;
import com.mv.service.TypeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author Administrator
 */
@RequestMapping("/type")
@Controller
public class TypeController {

    @Autowired
    TypeServiceImpl typeService;

    @RequestMapping("/selectAllType")
    @ResponseBody
    public List<Type> searchAllType(){
        return typeService.selectAllType();
    }


}
